//
//  BaseHeader.h
//  Food & Delights
//
//  Created by dlios on 15-7-13.
//  Copyright (c) 2015年 李志远. All rights reserved.
//

#ifndef Food___Delights_BaseHeader_h
#define Food___Delights_BaseHeader_h
/**
 *  菜谱的网路请求
 */
#define CAIPUURL @"http://api.xiangha.com/home5/getAppData/?type=newData"
/**
 *  view的高和宽
 */
#define Width self.view.frame.size.width
#define Height self.view.frame.size.height
/**
 *  collectinView的高和宽
 */
#define CollectionWidth self.contentView.frame.size.width
#define CollectionHeight self.contentView.frame.size.height
/**
 *  首页轮播网络请求
 */
#define ThreeMeals @"http://api.xiangha.com/home5/getIndexData?type=newData"
// 三餐接口前缀
#define ThreeMeal @"http://api.xiangha.com/caipu5/getDishList?type=typeRecommend&g1="
// 三餐菜单详情前缀接口
#define ThreeMealDetail @"http://api.xiangha.com/caipu3/getDishInfo/?code="
// 首页精选菜单详情前缀接口
#define Select @"http://api.xiangha.com/caipu3/getDishInfo/?code="
// 精品推荐菜单首页显示
#define Recommend @"http://api.xiangha.com/caipu5/getDishList?page=1&g1=1705&type=caidan"
/**
 *  健康接口
 */

#define HEALTHURL  @"http://api.xiangha.com/home5/getAppData/?type=newData"

/**
 *  健康养生
 */

#define HEAIKNOW  @"http://api.xiangha.com/zhishi5/getNousList?page=1&pinyin=ys&type=classify&name=健康养生"


// 精选接口

#define SELECT @"http://api.xiangha.com/zhishi5/getNousList?page=1&pinyin=jx&type=classify&name="

// 烹饪技巧
#define COOKING @"http://api.xiangha.com/zhishi5/getNousList?page=1&pinyin=jq&type=classify&name="

// 美食杂谈
#define TALKING @"http://api.xiangha.com/zhishi5/getNousList?page=1&pinyin=zt&type=classify&name="

/**
 *  养生详情
 */
#define HEAITHKNOWDATAILS    @"http://api.xiangha.com/zhishi5/nousInfo?code="


/**
 *  颜色宏
 */
#define RGBCOLOR(R,G,B)  [UIColor colorWithRed:R /255.0 green:G /255.0 blue:B/255.0 alpha:1]

/**
 *  屏幕大小
 */

#define SCREEN_WIDTH     ([UIScreen mainScreen].bounds.size.width)
#define SCREEN_HEIGHT    ([UIScreen mainScreen].bounds.size.height)

/**
 *  字体大小
 */

#define TEXTFONT         [UIFont systemFontOfSize:15]
// 主色调
#define REDCOLOR(A) [UIColor colorWithRed:208 / 255.0 green:65 / 255.0 blue: 36 / 255.0 alpha:A]
// 茶白
#define WHITECOLOR  [UIColor colorWithRed:237 / 255.0 green:247 / 255.0 blue: 232 / 255.0 alpha:1] 
// 字体颜色
#define FONTCOLOR  [UIColor colorWithRed:167 / 255.0 green:167 / 255.0 blue: 167 / 255.0 alpha:1]
/**
 *  附近餐馆
 */

#define NEARRESTAURANT   @"http://api.meishixing.com/search/nearby/recommandplace/lng=121.544740&lat=38.883438&page=1&session_id=000012b2aeca4600ed78e8f04006451605e8cc&distance=3000&food_category_name=&price="

/**
 *  tableView的高和宽
 */
#define tableViewWidth self.contentView.bounds.size.width
#define tableViewHeight self.contentView.bounds.size.height


#endif
